package com.yc.project1;

import com.yc.project1.bean.BankAccount;
import com.yc.project1.service.BankBiz;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @author zwei
 * @create 2024-08-03 17:13
 */
public class AppTest {
    public static void main(String[] args) {
        ApplicationContext ac=new AnnotationConfigApplicationContext(AppConfig.class);
        BankBiz bankBiz=ac.getBean(BankBiz.class);
//        bankBiz.findById(1);
        bankBiz.update(new BankAccount(1,999.99));
    }
}
